<!--
 * @Author: early-autumn
 * @Date: 2020-05-16 13:39:56
 * @LastEditors: early-autumn
 * @LastEditTime: 2020-05-16 16:46:26
-->
<template>
  <el-dialog title="交易" :visible="value" @close="handleValueChange">
    <transaction-title :patient="patient" :vip-info="vipInfo" />
    <deal />
    <!-- <div slot="footer">
      <el-button @click="handleValueChange">取 消</el-button>
      <el-button type="primary" @click="handleValueChange">确 定</el-button>
    </div> -->
  </el-dialog>
</template>

<script>
import TransactionTitle from '../TransactionTitle'
import Deal from '../Deal'

export default {
  name: 'Transaction',
  components: {
    TransactionTitle,
    Deal,
  },
  model: {
    prop: 'value',
    event: 'close',
  },
  props: {
    value: {
      type: Boolean,
      default: false,
    },
    vipInfo: {
      type: Object,
      default: () => {},
    },
    patient: {
      type: Object,
      default: () => {},
    },
  },
  methods: {
    handleValueChange() {
      this.$emit('change', false)
    },
  },
}
</script>

<style></style>
